package com.xgk.boot.module.core.controller.admin.channel.vo.sp;

import com.mzt.logapi.starter.annotation.DiffLogField;
import com.xgk.boot.framework.common.enums.CommonStatusEnum;
import com.xgk.boot.framework.common.validation.InEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Schema(description = "管理后台 - 供应商服务创建/更新 Request VO")
@Data
public class SpSaveReqVO {

    @Schema(description = "供应商服务ID", example = "1")
    private Long spId;


    @Schema(description = "供应商服务代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "供应商服务代码不能为空")
    @DiffLogField(name = "供应商服务代码")
    private String spCode;
    

    @Schema(description = "供应商服务名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "供应商服务名称不能为空")
    @DiffLogField(name = "供应商服务名称")
    private String spName;
//
//    @Schema(description = "供应商服务类型", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "供应商服务类型不能为空")
//    @DiffLogField(name = "供应商服务类型")
//    private Integer asType;
    

    @Schema(description = "服务状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "服务状态不能为空")
    @InEnum(value = CommonStatusEnum.class, message = "状态必须是 {value}")
    @DiffLogField(name = "服务状态")
    private Integer spStatus;

//    @Schema(description = "是否试用", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
//    @NotNull(message = "是否试用不能为空")
//    @DiffLogField(name = "是否试用")
//    private Integer spTrial;

    @Schema(description = "押金")
    @DiffLogField(name = "押金")
    private String spBalance;

    @Schema(description = "对接人")
    @DiffLogField(name = "对接人")
    private String spContactPerson;

    @Schema(description = "电话")
    @DiffLogField(name = "电话")
    private String spContactPersonPhone;

    @Schema(description = "邮箱")
    @DiffLogField(name = "邮箱")
    private String spContactEmail;

}